<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="MaterialsList,org.papervision3d.materials.utils.MaterialsList,_materials,materialsByName,numMaterials,addMaterial,clone,getMaterialByName,removeMaterial,removeMaterialByName,toString" name="keywords">
<title>org.papervision3d.materials.utils.MaterialsList</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'MaterialsList - API Documentation';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Papervision3D 2.1 日本語 リファレンスガイド</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?org/papervision3d/materials/utils/MaterialsList.html&amp;org/papervision3d/materials/utils/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;MaterialsList</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class MaterialsList"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.papervision3d.materials.utils</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class MaterialsList</td>
</tr>
</table>
<p></p>
 <span lang="ja">MaterialsList は、マテリアルのリストを格納するクラスです。</span>
 
 <span lang="en">The MaterialsList class contains a list of materials.
 <p/>
 Each MaterialsList object has its own materials list.</span>
 <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#materialsByName">materialsByName</a> : Dictionary<div class="summaryTableDescription">
  名前でインデックス化されたマテリアルのリストです。
  </div>
</td><td class="summaryTableOwnerCol">MaterialsList</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#numMaterials">numMaterials</a> : int<div class="summaryTableDescription">[read-only]
  登録されたマテリアルの個数を取得します。
  </div>
</td><td class="summaryTableOwnerCol">MaterialsList</td>
</tr>
</table>
</div>
<a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Properties</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_materials">_materials</a> : Dictionary<div class="summaryTableDescription">
  [internal-use] マテリアルのリストです。
  </div>
</td><td class="summaryTableOwnerCol">MaterialsList</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#MaterialsList()">MaterialsList</a>(materials:* = null)</div>
<div class="summaryTableDescription">
  新しい MaterialsList インスタンスを作成します。
    </div>
</td><td class="summaryTableOwnerCol">MaterialsList</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addMaterial()">addMaterial</a>(material:<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a>, name:String = null):<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a>
</div>
<div class="summaryTableDescription">
  マテリアルを追加します。
  
  </div>
</td><td class="summaryTableOwnerCol">MaterialsList</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clone()">clone</a>():<a href="../utils/MaterialsList.html">MaterialsList</a>
</div>
<div class="summaryTableDescription">
  マテリアルズリストのコピーを作成します。
    </div>
</td><td class="summaryTableOwnerCol">MaterialsList</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getMaterialByName()">getMaterialByName</a>(name:String):<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a>
</div>
<div class="summaryTableDescription">
  <span lang="ja">指定された名前で存在するマテリアルを取得します。</span>
  <span lang="en">Returns the material that exists with the specified name.</span>
  </div>
</td><td class="summaryTableOwnerCol">MaterialsList</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeMaterial()">removeMaterial</a>(material:<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a>):<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a>
</div>
<div class="summaryTableDescription">
  マテリアルズリストから指定されたマテリアルを削除します。
    </div>
</td><td class="summaryTableOwnerCol">MaterialsList</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeMaterialByName()">removeMaterialByName</a>(name:String):<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a>
</div>
<div class="summaryTableDescription">
  <span lang="ja">指定された名前で存在するマテリアルを削除します。存在するマテリアルが無い時、マテリアルオブジェクトはガーベージコレクションされます。</span>
  
  <span lang="en">
  Removes the material that exists with the specified name.</div>
</td><td class="summaryTableOwnerCol">MaterialsList</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toString()">toString</a>():String</div>
<div class="summaryTableDescription">
  <span lang="ja">指定されたオブジェクトのストリング表現を取得します。</span>
  </div>
</td><td class="summaryTableOwnerCol">MaterialsList</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="_materials"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_materials</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _materials:Dictionary</code><p>
  [internal-use] マテリアルのリストです。
  </p></div>
<a name="materialsByName"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">materialsByName</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var materialsByName:Dictionary</code><p>
  名前でインデックス化されたマテリアルのリストです。
  </p></div>
<a name="numMaterials"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">numMaterials</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>numMaterials:int</code>&nbsp;&nbsp;[read-only]<p>
  登録されたマテリアルの個数を取得します。
  </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get numMaterials():int</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="MaterialsList()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MaterialsList</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function MaterialsList(materials:* = null)</code><p>
  新しい MaterialsList インスタンスを作成します。
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">materials</span>:*</code> (default = <code>null</code>)<code></code> &mdash; 
  <span lang="ja">マテリアルの Object インスタンスです。</span>
  <span lang="en">An array or name indexed object with materials to populate the list with.</span>
  </td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="addMaterial()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addMaterial</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function addMaterial(material:<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a>, name:String = null):<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a></code><p>
  マテリアルを追加します。
  
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">material</span>:<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a></code> &mdash; The material to add.
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> (default = <code>null</code>)<code></code> &mdash;  An optional name of the material. If no name is provided, the material name will be used.
  </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a></code> &mdash; 
                        The material you have added.
  
                        
                     </td>
</tr>
</table>
</div>
<a name="clone()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clone</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function clone():<a href="../utils/MaterialsList.html">MaterialsList</a></code><p>
  マテリアルズリストのコピーを作成します。
    </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../utils/MaterialsList.html">MaterialsList</a></code> &mdash; 
                        A newly created materials list that contains a duplicate of each of its materials.
  
                        
                     </td>
</tr>
</table>
</div>
<a name="getMaterialByName()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getMaterialByName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getMaterialByName(name:String):<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a></code><p>
  <span lang="ja">指定された名前で存在するマテリアルを取得します。</span>
  <span lang="en">Returns the material that exists with the specified name.</span>
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; The name of the material to return.
  </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a></code> &mdash; 
                        The material with the specified name.
  
                        
                     </td>
</tr>
</table>
</div>
<a name="removeMaterial()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeMaterial</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function removeMaterial(material:<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a>):<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a></code><p>
  マテリアルズリストから指定されたマテリアルを削除します。
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">material</span>:<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a></code> &mdash; The material to remove.
  </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a></code> &mdash; 
                        The material you have removed.
  
                        
                     </td>
</tr>
</table>
</div>
<a name="removeMaterialByName()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeMaterialByName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function removeMaterialByName(name:String):<a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a></code><p>
  <span lang="ja">指定された名前で存在するマテリアルを削除します。存在するマテリアルが無い時、マテリアルオブジェクトはガーベージコレクションされます。</span>
  
  <span lang="en">
  Removes the material that exists with the specified name.
  The material object is garbage collected if no other references to the material exist.
  The garbage collector is the process by which Flash Player reallocates unused memory space. 
  When a variable or object is no longer actively referenced or stored somewhere, 
  the garbage collector sweeps through and wipes out the memory space it used to occupy if no other references to it exist.
  </span>
  
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code> &mdash; The name of the material to remove.
  </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../../core/proto/MaterialObject3D.html">MaterialObject3D</a></code> &mdash; 
                        The material object that was removed.
  
                        
                     </td>
</tr>
</table>
</div>
<a name="toString()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function toString():String</code><p>
  <span lang="ja">指定されたオブジェクトのストリング表現を取得します。</span>
  </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>String</code></td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
